package com.fizzkai.p2p.bussness.domain;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fizzkai.p2p.core.domain.BaseDomain;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter@Setter
public class PlatformBankInfo extends BaseDomain {
    private String bankName;    // 银行名字
    private String accountName; // 账户名字
    private String accountNumber; // 账户卡号
    private String bankForkname; // 分支名称

    public String getJsonString() throws Exception{
        Map<String,Object> map = new HashMap<String,Object>();
        map.put("id",super.getId());
        map.put("bankName",bankName);
        map.put("accountName",accountName);
        map.put("accountNumber",accountNumber);
        map.put("bankForkname",bankForkname);
        return new ObjectMapper().writeValueAsString(map);

    }


}
